class Animal:
    name='animal'

class Dog(Animal):
    name = 'dog'
    def eat(self):
        print('dog~~~~~')

dog=Dog()
print(dog.name)